package com.chaos.auth.service.auth;

import com.chaos.auth.api.constant.CommonConstant;
import com.chaos.framework.model.serivce.RedisService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author yjp
 * @date 2024/7/9
 */
@Deprecated
@Slf4j
@Component
public class BlackListService {

    @Resource
    private RedisService redisService;

    private Boolean addBlackList(String key, String value) {
        redisService.hSet(CommonConstant.BLACK_LIST,key,value,73000);
        return true;
    }
}
